import request from '@/utils/request'

// 查询爽约投诉列表
export function listNoShowComplaints(query) {
  return request({
    url: '/user/noShowComplaints/list',
    method: 'get',
    params: query
  })
}

// 查询爽约投诉详细
export function getNoShowComplaints(complaintId) {
  return request({
    url: '/user/noShowComplaints/' + complaintId,
    method: 'get'
  })
}

// 新增爽约投诉
export function addNoShowComplaints(data) {
  return request({
    url: '/user/noShowComplaints',
    method: 'post',
    data: data
  })
}

// 修改爽约投诉
export function updateNoShowComplaints(data) {
  return request({
    url: '/user/noShowComplaints',
    method: 'put',
    data: data
  })
}

// 删除爽约投诉
export function delNoShowComplaints(complaintId) {
  return request({
    url: '/user/noShowComplaints/' + complaintId,
    method: 'delete'
  })
}
